package com.neusoft.databus.policy.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.databus.policy.model.PolicyRefLinkage;
import com.neusoft.databus.policy.model.PolicyRefResource;

public interface PolicyRefLinkageRepository
        extends JpaRepository<PolicyRefLinkage, Long>, CustomizedPolicyRefResourceRepository {

    List<PolicyRefResource> findByResourceCode(String resourceCode);

    void deleteByPolicyId(Long policyId);

}
